home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
hc
/
share_pa.sit
/
Shareware Payroll
/
background_2596.txt
< prev
next >
Wrap
Text File
|
1988-08-18
|
12KB
|
329 lines
-- background: 2596 from stack: in
-- bmap block id: 4624
-- flags: 0000
-- background id: 0
-- name:
-- part 16 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=151 top=168 right=212 bottom=338
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Calculate Now
----- HyperTalk script -----
on mouseUp
set the cursor to 4
set the numberFormat to "0.00"
put field 1 into married
put field 9 into hoh
put field Gross into gross
if married = "y" and gross < 36 then put "0" into fedtax
if married = "n" and gross < 12 then put "0" into fedtax
if married = "n" and gross > 12 and gross < 47 then put (.11 * (gross - 12)) into fedtax
if married = "n" and gross >47 and gross < 335 then put (.15 * (gross-47)) + 3.85 into fedtax
if married = "n" and gross >335 and gross < 532 then put (.28 * (gross-335)) + 47.05 into fedtax
if married = "n" and gross >532 and gross < 1051 then put (.35 * (gross-532)) + 102.21 into fedtax
if married = "n" and gross >1051 then put (.385 * (gross-1051)) + 283.86 into fedtax
if married = "y" and gross >36 and gross <93 then put (.11 * gross) into fedtax
if married = "y" and gross > 93 and gross < 574 then put (.15 * (gross - 93)) + 6.27 into fedtax
if married = "y" and gross > 574 and gross < 901 then put (.28 * (gross - 574)) + 78.42 into fedtax
if married = "y" and gross > 901 and gross < 1767 then put (.35 * (gross - 901)) + 169.98 into fedtax
if married = "y" and gross > 1767 then put (.385 * (gross - 1767)) + 473.08 into fedtax
put fedtax into field 4
put gross * .0715 into field 5
put gross * .012 into field 6
put field 2 into dependents
if married = "n" and gross < 108 then put "0" into statetax
if married = "y" and dependents <2 and gross < 108 then put "0" into statetax
if married = "y" and dependents >1 and gross < 217 then put "0" into statetax
if married = "n" and dependents <2 then put 33 into deduction
if married = "n" and dependents >1 then put 66 into deduction
if married ="y" and dependents <2 then put 33 into deduction
if married = "y" and dependents >1 then put 66 into deduction
put (gross - deduction) into taxable
--
-- Singles Section
--
if married = "n" and taxable > 0 and taxable < 67.01 then put (taxable * .01) into statetax
if married = "n" and taxable > 67 and taxable < 117.01 then put ((taxable * .02) - .67) into statetax
if married = "n" and taxable > 117 and taxable < 168.01 then put ((taxable * .03) - 1.84) into statetax
if married = "n" and taxable > 168 and taxable < 219.01 then put ((taxable * .04) - 3.54) into statetax
if married = "n" and taxable > 219 and taxable < 269.01 then put ((taxable * .05) - 5.72) into statetax
if married = "n" and taxable > 269 and taxable < 320.01 then put ((taxable * .06) - 8.39) into statetax
if married = "n" and taxable > 320 and taxable < 370.01 then put ((taxable * .07) - 11.62) into statetax
if married = "n" and taxable > 370 and taxable < 420.01 then put ((taxable * .08) - 15.32) into statetax
if married = "n" and taxable > 420 and taxable < 471.01 then put ((taxable * .09) - 19.48) into statetax
if married = "n" and taxable > 471 and taxable < 521.01 then put ((taxable * .10) - 24.24) into statetax
if married = "n" and taxable > 521 then put ((taxable * .11) - 29.43) into statetax
--
-- Unmarried Heads of Household section
--
if married = "n" and hoh = "y" and taxable > 0 and taxable < 134.01 then put (taxable * .01) into statetax
if married = "n" and hoh = "y" and taxable > 134 and taxable < 201.01 then put ((taxable * .02) - 1.34) into statetax
if married = "n" and hoh = "y" and taxable > 201 and taxable < 252.01 then put ((taxable * .03) - 3.35) into statetax
if married = "n" and hoh = "y" and taxable > 252 and taxable < 303.01 then put ((taxable * .04) - 5.87) into statetax
if married = "n" and hoh = "y" and taxable > 303 and taxable < 353.01 then put ((taxable * .05) - 8.93) into statetax
if married = "n" and hoh = "y" and taxable > 353 and taxable < 404.01 then put ((taxable * .06) - 12.43) into statetax
if married = "n" and hoh = "y" and taxable > 404 and taxable < 454.01 then put ((taxable * .07) - 16.50) into statetax
if married = "n" and hoh = "y" and taxable > 454 and taxable < 504.01 then put ((taxable * .08) - 21.02) into statetax
if married = "n" and hoh = "y" and taxable > 504 and taxable < 555.01 then put ((taxable * .09) - 26.05) into statetax
if married = "n" and hoh = "y" and taxable > 555 and taxable < 605.01 then put ((taxable * .10) - 31.63) into statetax
if married = "n" and hoh = "y" and taxable > 605 then put ((taxable * .11) - 37.65) into statetax
--
-- Married Section
--
if married = "y" and taxable > 0 and taxable < 135.01 then put (taxable * .01) into statetax
if married = "y" and taxable > 135 and taxable < 235 then put ((taxable * .02) - 1.35) into statetax
if married = "y" and taxable > 235 and taxable < 335 then put ((taxable * .03) - 3.7) into statetax
if married = "y" and taxable > 335 and taxable < 437 then put ((taxable * .04) - 7.04) into statetax
if married = "y" and taxable > 437 and taxable < 538 then put ((taxable * .05) - 11.4) into statetax
if married = "y" and taxable > 538 and taxable < 639 then put ((taxable * .06) - 16.77) into statetax
if married = "y" and taxable > 639 and taxable < 739 then put ((taxable * .07) - 23.18) into statetax
if married = "y" and taxable > 739 and taxable < 840 then put ((taxable * .08) - 30.57) into statetax
if married = "y" and taxable > 840 and taxable < 941 then put ((taxable * .09) - 38.95) into statetax
if married = "y" and taxable > 941 and taxable < 1042 then put ((taxable * .1) - 48.38) into statetax
if married = "y" and taxable > 1042 then put ((taxable * .11) - 58.87) into statetax
if married = "n" and dependents = 0 then subtract 0 from statetax
if married = "n" and dependents = 1 then subtract .8 from statetax
if married = "n" and dependents = 2 then subtract 1.1 from statetax
if married = "n" and dependents = 3 then subtract 1.4 from statetax
if married = "n" and dependents = 4 then subtract 1.6 from statetax
if married = "n" and dependents = 5 then subtract 1.9 from statetax
if married = "n" and dependents = 6 then subtract 2.2 from statetax
if married = "n" and dependents = 7 then subtract 2.4 from statetax
if married = "n" and dependents = 8 then subtract 2.7 from statetax
if married = "n" and dependents = 9 then subtract 3 from statetax
if married = "n" and dependents >10 then subtract (3.2 + ((dependents - 10) * .2)) from statetax
if married = "y" and dependents = 0 then subtract 0 from statetax
if married = "y" and dependents = 1 then subtract .8 from statetax
if married = "y" and dependents = 2 then subtract 1.7 from statetax
if married = "y" and dependents = 3 then subtract 1.9 from statetax
if married = "y" and dependents = 4 then subtract 2.2 from statetax
if married = "y" and dependents = 5 then subtract 2.5 from statetax
if married = "y" and dependents = 6 then subtract 2.7 from statetax
if married = "y" and dependents = 7 then subtract 3 from statetax
if married = "y" and dependents = 8 then subtract 3.3 from statetax
if married = "y" and dependents = 9 then subtract 3.5 from statetax
if married = "y" and dependents >10 then subtract (3.8 + ((dependents - 10) * .3)) from statetax
put statetax into field 7
if field 7 < 0 then put 0 into field 7
put field 3 - field 4 - field 5 - field 6 - field 7 into field 8
global counter
add 1 to counter
if counter = 2 then doMenu "Quit HyperCard"
end mouseUp
-- part 20 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=253 top=74 right=97 bottom=324
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Married ?
-- part 23 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=253 top=103 right=126 bottom=325
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: kids
-- part 28 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=253 top=132 right=154 bottom=325
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Gross
----- HyperTalk script -----
on CloseField
send mouseUp to bkgnd button 1
end CloseField
-- part 29 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=65 top=245 right=262 bottom=128
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Federal
-- part 30 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=147 top=245 right=262 bottom=210
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: F.I.C.A.
-- part 31 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=221 top=245 right=262 bottom=284
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: S.D.I.
-- part 32 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=292 top=245 right=262 bottom=355
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: State
-- part 33 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=374 top=245 right=262 bottom=437
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Net Pay
-- part 43 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=173 top=276 right=325 bottom=226
-- title width / last selected line: 0
-- icon id / first selected line: 2 / 2
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warning
----- HyperTalk script -----
on mouseUp
go card 3
end mouseUp
-- part 44 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=92 top=276 right=325 bottom=145
-- title width / last selected line: 0
-- icon id / first selected line: 1020 / 1020
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
go card 2
end mouseUp
-- part 45 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=254 top=276 right=325 bottom=308
-- title width / last selected line: 0
-- icon id / first selected line: 1 / 1
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Register!
----- HyperTalk script -----
on mouseUp
go card 4
end mouseUp
-- part 46 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=253 top=45 right=68 bottom=324
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: hoh
-- part 47 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=339 top=276 right=325 bottom=393
-- title width / last selected line: 0
-- icon id / first selected line: 14953 / 14953
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Quit
----- HyperTalk script -----
on mouseUp
doMenu "Quit HyperCard"
end mouseUp